package org.batyrov.equery.action.admin;

import org.batyrov.equery.action.BaseAction;
import org.batyrov.equery.action.Const;
import org.batyrov.equery.bean.Window;

import java.util.Collection;

/**
 * Created by IntelliJ IDEA.
 * User: admin
 * Date: 13.09.2009
 * Time: 19:17:32
 * To change this template use File | Settings | File Templates.
 */
public class ViewWindowList extends BaseAction{
    private Collection<Window> windows;

    public Collection<Window> getWindows() {
        return windows;
    }

    public void setWindows(Collection<Window> windows) {
        this.windows = windows;
    }

    @Override
    public String execute() throws Exception {
        super.execute();
        this.windows = dao.getAllWindow();
        return Const.SUCCESS;
    }
}
